/*************************************************
* Title：TinyToolKit
* Author：Opportunity 
* Describe：定义默认的日志打印模板
* CreateTime：2020-04-05 21:41:58
* Version：1.0
* Modify Recorder：
*************************************************/

using UnityEngine;

namespace TinyToolKit
{
    public class DefaultLogTemplate : TLogTool.ILogTemplate
    {
        public void Log(TLogTool.LogLevel level, object msg)
        {
            switch (level)
            {
                case TLogTool.LogLevel.DEBUG:
                    Debug.Log(msg);
                    break;
                case TLogTool.LogLevel.INFO:
                    Debug.Log(msg);
                    break;
                case TLogTool.LogLevel.WARNING:
                    Debug.LogWarning(msg);
                    break;
                case TLogTool.LogLevel.ERROR:
                    Debug.LogError(msg);
                    break;
            }
        }
    }
}
